﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="testxlst.aspx.cs" Inherits="NWN.GDY.Web.testxlst" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>testxslt</title>
    <script src="/js/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script src="/js/table.js" type="text/javascript"></script>
    <script src="/js/jquery.xslt.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        $(document).ready(function() {
        });

        function test() {
            $.ajax({
                url: 'ajax.aspx',
                type: 'GET',
                dataType: 'html',
                timeout: 5000,
                data: "opName=GetTable&tableguid=" + $('#tableguid').val(),
                error: function() {
                    alert('Error loading XML document');
                },
                success: function(xml) {
                    $("#mainDiv").xslt(xml, "/xslt/TableSeat.xslt", function(result) {  });
                }
            });
        }

    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <input type="text" id="tableguid" />
        <input type="button" value="test"  onclick="test()"/>
        <div id="mainDiv"></div>
    </div>
    </form>
</body>
</html>
